

* Appendix P - Models for Panel Data Analysis - British Election Study Panel Data


clear all
cd "${data}"
use "data2.dta", clear


keep if vague >2 & vague <8
	
xtset id vague

eststo m_overallaccuracy: xtreg accuracy_index i.wave_, fe vce(cluster id)
margins, at(wave_=(3 4 5 6 7)) post

cd "${tables}"

*TableP1: Over-Time Trends in Perceptual Error Before, During, and After the Election - BESIP
esttab m_overallaccuracy using tableP1.tex , replace b(3) se(3) nogap 

